package it.patterns.creational.prototype;

public class ConcretePrototypeA extends Prototype {
	private int hr, min, sec;

	public void setTime(int hr, int min, int sec) {
		this.hr = hr;
		this.min = min;
		this.sec = sec;
	}

	public int getHours() {
		return hr;
	}

	public int getMinutes() {
		return min;
	}

	public int getSeconds() {
		return sec;
	}

	@Override
	public Prototype cloneItself() {
		ConcretePrototypeA myClone = new ConcretePrototypeA();
		myClone.setTime(0, 0, 0);
		return myClone;
	}
}
